package com.example.serviceImpl;


import com.example.bean.Admin;
import com.example.mapper.AdminMapper;
import com.example.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;

    public Admin selectAdminById(String  adminId) {
        return adminMapper.selectAdminById(adminId);
    }

    public List<Admin> selectAdminAll() {
        return adminMapper.selectAdminAll();
    }

    public int updateAdmin(Admin admin) {
        return adminMapper.updateAdmin(admin);
    }

    public int insertAdmin(Admin admin) {
        return adminMapper.insertAdmin(admin);
    }

    public int deleteAdmin(String adminId) {
        return adminMapper.deleteAdmin(adminId);
    }
}
